    //cookiess
    var hidewelcome = $.cookie('hidewelcome');
    if (hidewelcome == 'collapsed') {
        $('#sliderBox').css("display", "none");
        $('#mask').css("display", "none");
        closeWelcomeBox = true;
    }
$(document).ready(function() {
    $('#sliderBox').slideTo({
        transition: 3000,
        top: 'center',
        left: 'center',
        inside: window
    });
    $('#mask').height($(document).height());
    jQuery(window).resize(function() {
        $('#sliderBox').stop().slideTo({
            transition: 300,
            top: 'center',
            left: 'center',
            inside: window
        });
    });
    var closeWelcomeBox;
    $(window).scroll(function() {
        if (!closeWelcomeBox) {
            $('#sliderBox').stop().slideTo({
                transition: 300,
                top: 'center',
                left: 'center',
                inside: window
            });
        }
    });
    $("#closeWelcomeBox").click(function() {
        $('#sliderBox').stop().slideTo({
            transition: 500,
            left: -1920
        });
        $('#mask').fadeOut(500);
        closeWelcomeBox = true;
        $.cookie('hidewelcome', 'collapsed', {
            expires: 1,
            path: '/'
        });
    });
});